﻿using System;
using System.Collections.Generic;
using System.Text;
using DevExpress.Persistent.Base;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Validation;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.ConditionalAppearance;
using DevExpress.ExpressApp.Utils;
using DevExpress.ExpressApp.SystemModule;
using DomainComponents.Common;

namespace DomainComponents.XCRM {
    [NonPersistent]
    public class DisqualifyLeadParameters {
        public DisqualifyLeadParameters(ILead lead) {
        }
        //need S92424
        public LeadStatus Status { get; set; }
    }

    [DomainLogic(typeof(ILead))]
    public class LeadDisqualifyLogic {
        public static void Disqualify(ILead lead, DisqualifyLeadParameters paremeters) {
            lead.Status = paremeters.Status;
        }
    }
}
